<?php

namespace Admin\Model;

class BaseModel 
{
	public function exchangeArray($data) {
		$properties = $this->getArrayCopy($this);
		foreach ($properties as $property => $value)
			$this->{$property} = isset($data[$property]) ? $data[$property] : null;
	}

	public function getArrayCopy() {
		return get_object_vars($this);
	}
	
	public function setInputFilter(InputFilterInterface $inputFilter)
    {
        throw new \Exception("Not used");
    }

}
